#include <QtGui/QApplication>
#include "mainwindow.h"
#include "login.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    MainWindow w;
    Login *w_login = new Login();


    while (!w_login->result())
        w_login->exec();
    if (w_login->isAutenticado())
    {
        w_login->close();
        w.show();
    }









    //w.show();

    return app.exec();
}
